package com.cn.springcloudwechat.model.articleAndMenu;

import org.joda.time.DateTime;

import java.util.Date;

/**
*@program: YmActivityArticle
*@author: Administrator
*@create: 2018-07-19 10:57
*/
public class YmActivityArticle {
    /**
     * 文章id
     */
    private Long articleId;
    /**
     * 封面图
     */
    private String coverPictureUrl;
    /**
     * 活动起始时间
     */
    private Date activityStartTime;
    /**
     * 活动起始时间str yyyy-MM-dd
     */
    private String strActivityStartTime;
    /**
     * 活动结束时间
     */
    private Date activityEndTime;
    /**
     *  活动结束时间str yyyy-MM-dd
     */
    private String strActivityEndTime;
    /**
     *  状态
     */
    private Short state;
    /**
     *  创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 活动状态
     */
    private Integer activityState;
    /**
     * 活动封面
     */
    private String activitycoverPictureUrl;

    public String getActivitycoverPictureUrl() {
        return activitycoverPictureUrl;
    }

    public YmActivityArticle setActivitycoverPictureUrl(String activitycoverPictureUrl) {
        this.activitycoverPictureUrl = activitycoverPictureUrl;
        return this;
    }

    public Integer getActivityState() {
        return activityState;
    }

    public YmActivityArticle setActivityState(Integer activityState) {
        this.activityState = activityState;
        return this;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public String getCoverPictureUrl() {
        return coverPictureUrl;
    }

    public void setCoverPictureUrl(String coverPictureUrl) {
        this.coverPictureUrl = coverPictureUrl == null ? null : coverPictureUrl.trim();
    }

    public Date getActivityStartTime() {
        return activityStartTime;
    }

    public void setActivityStartTime(Date activityStartTime) {
        this.strActivityStartTime=new DateTime(activityStartTime).toString("yyyy-MM-dd hh:mm:ss");
        this.activityStartTime = activityStartTime;
    }

    public Date getActivityEndTime() {
        return activityEndTime;
    }

    public void setActivityEndTime(Date activityEndTime) {
        this.strActivityEndTime=new DateTime(activityEndTime).toString("yyyy-MM-dd hh:mm:ss");
        this.activityEndTime = activityEndTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "YmActivityArticle{" +
                "articleId=" + articleId +
                ", coverPictureUrl='" + coverPictureUrl + '\'' +
                ", activityStartTime=" + activityStartTime +
                ", strActivityStartTime='" + strActivityStartTime + '\'' +
                ", activityEndTime=" + activityEndTime +
                ", strActivityEndTime='" + strActivityEndTime + '\'' +
                ", state=" + state +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public String getStrActivityStartTime() {
        return strActivityStartTime;
    }

    public String getStrActivityEndTime() {
        return strActivityEndTime;
    }
}